package com.koron.ticket.work.workinfo.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class WorkInfo {

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "工作票id")
    private String workTicketId;

    @ApiModelProperty(value = "开票人所在部门id")
    private String department;

    @ApiModelProperty(value = "开票人所在部门name")
    private String departmentName;

    @ApiModelProperty(value = "安全措施")
    private String safetyMeasures;

    @ApiModelProperty(value = "检修安全措施")
    private String safetyMeasuresRepair;

    @ApiModelProperty(value = "施工单位名称")
    private String construction;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "备注")
    private String description;

    @ApiModelProperty(value = "保留的带电设备")
    private String equipmentCharged;

    @ApiModelProperty(value = "工作的线路或者设备ID")
    private String equipmentId;

    @ApiModelProperty(value = "工作的线路或者设备名称")
    private String equipmentName;

    @ApiModelProperty(value = "工作范围")
    private String workRange;

    @ApiModelProperty(value = "0-在使用；1-已删除")
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date createTime;

}
